import { APageHttpCmd } from "../base.cmd";
import { CmdSignModel, AgentBusinessOrderInfoModel } from "../../models/index";
import { CmdCode } from "../../code/index";

export class AgentBusinessOrderInfoListCmd extends APageHttpCmd {
    constructor(private model?: AgentBusinessOrderInfoModel) {
        super();
    }

    req(): CmdSignModel {
        return super.buildCmdSign(this.model);
    }

    resp(data: any): void {

    }

    setParams(params: any) {
        if (!this.model) {
            this.model = new AgentBusinessOrderInfoModel();
        }
        if (params.pageSize) {
            this.pageSize = params.pageSize;
        }
        if (params.pageIndex) {
            this.pageIndex = params.pageIndex;
        }

        Object.assign(this.model, params);
    }

    error(model: CmdSignModel): void {
    }

    getCmdCode(): string {
        return CmdCode.AGENT_BUSINESS_ORDER_INFO_LIST;
    }

}
